package com.cm.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

//@Configuration注解用于设定当前类为配置类
@Configuration
//@ComponentScan注解用于设定扫描路径，此注解只能添加一次，多个数据请用数组格式
@ComponentScan("com.cm")
//@PropertySource加载properties配置文件
@PropertySource({"classpath:jdbc.properties"})
//Import导入其他配置类
//@Import({JdbcConfig.class})
public class SpringConfig {

}
